<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/styles/general.css"/>
<link rel="stylesheet" type="text/css" href="/styles/main.css" />
<link rel="stylesheet" type="text/css" href="/styles/validator.css"></link>
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/formValidator.js" type="text/javascript"></script>
<script src="/js/formValidatorRegex.js" type="text/javascript"></script>
<script type="text/javascript"> 
showtag=function(){
	typeid = $("#type").val();
	$.ajax({
        url: "/vod/tagajax/typeid/"+typeid+"/vid/$vid",
        cache: false,
        success: function(html){
            $("#tags").html(html);
        }
    });
}
$(document).ready(function(){
	$.formValidator.initConfig({formid:"myform",onerror:function(msg){alert(msg)}});
	$("#title").formValidator({onshow:"请输入标题",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#type").change(showtag);
	$("#type").trigger("change");
});
</script>
<title></title>
</head>
<body>
<h1>
<span class="action-span"><a href="/vod">管理点播</a></span>
<span class="action-span1">修改点播 </span>
<div style="clear:both"></div>
</h1>
<div class="main-div">
  <form action="/vod/modify/" method="post" name="myform" id="myform" enctype="multipart/form-data">
  <input name='vid' id='vid' type="hidden" value="$vid" /> 
  <table width="100%" id="general-table">
     <tr>
        <td class="label">标题：</td>
        <td>
			{form text * title title $info['title']}
        </td>
        <td><div id='titleTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">节目类型：</td>
        <td>
			{form select * type type $info['type'] * * $types}
        </td>
        <td><div id='typeTip' style="width:250px"></div></td>
     </tr>
     <tr>
      	<td colspan="3">
      		<div id="tags"></div>
      	</td>
     </tr>
     <tr>
        <td class="label">图片路径：</td>
        <td>
			{form image * imgurl imgurl $info['imgurl'] * * * $webheader}
        </td>
        <td><div id='imgurlTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">导演：</td>
        <td>
			{form text * director director $info['director']}
        </td>
        <td><div id='directorTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">主演：</td>
        <td>
			{form text * act act $info['act']}
        </td>
        <td><div id='actTip' style="width:250px"></div></td>
     </tr>
     
     <tr>
        <td class="label">评分：</td>
        <td>
			{form text * mark mark $info['mark']}
        </td>
        <td><div id='markTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">码率：</td>
        <td>
			{form text * bitrate bitrate $info['bitrate']}
        </td>
        <td><div id='bitrateTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">分辨率：</td>
        <td>
			{form text * resolution resolution $info['resolution']}
        </td>
        <td><div id='resolutionTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">时长：</td>
        <td>
			{form text * duration duration $info['duration']}
        </td>
        <td><div id='durationTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">片头广告：</td>
        <td>
			{form text * ad ad $info['ad']}
        </td>
        <td><div id='adTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">描述：</td>
        <td>
			{form textarea * content content $info['content']}
        </td>
        <td><div id='contentTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">点播设备：</td>
        <td>
			{form select * vodip vodip $slaveid * * $slaves}
        </td>
        <td><div id='vodipTip' style="width:250px"></div></td>
      </tr>
  </table>
  
   <div class="button-div">
        <input type="submit" value="&nbsp;确&nbsp;定&nbsp;" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" value="&nbsp;重&nbsp;置&nbsp;" />
   </div>
      
  </form>
</div>
{template 'footer.html'}
</body>
</html>
